home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
rocketman.swf
/
scripts
/
frame_231
/
PlaceObject2_484_154
/
CLIPACTIONRECORD onClipEvent(load).as
Wrap
Text File
|
2007-01-12
|
1KB
|
63 lines
onClipEvent(load){
function scroll()
{
if(superg.scroll)
{
if(_parent.changequal == 1)
{
if(noscroll)
{
noscroll = 0;
oldqual = _parent._quality;
}
_parent._quality = "LOW";
}
_parent.bg._x = _X / (w - 550) * (bgw - 550);
if(_parent.bg._x > 0)
{
_parent.bg._x = 0;
}
if(_parent.bg._x < - (bgw - 550))
{
_parent.bg._x = - (bgw - 550);
}
_parent.bg._y = _Y / (h - 200) * (bgh - 400) - (bgh - 400);
if(_parent.bg._y > 0)
{
_parent.bg._y = 0;
}
if(_parent.bg._y < - bgh + 400)
{
_parent.bg._y = - bgh + 400;
}
}
else
{
noscroll = 1;
_parent._quality = oldqual;
}
}
oldqual = _parent._quality;
topy = -20;
topx = 20;
_parent.bg.setMask(_parent.mask);
this.setMask(_parent.mask2);
onEnterFrame = function()
{
if(_Y < topy - 1 || _Y > topy + 1)
{
_Y = _Y + (topy - _Y) / 6;
}
else
{
_Y = topy;
superg.begin = 1;
w = _width;
h = _height;
bgw = _parent.bg._width;
bgh = _parent.bg._height;
onEnterFrame = scroll;
}
};
}